package cn.wolfcode.luowowo.article.vo;

import cn.wolfcode.luowowo.article.domain.ScenicDetail;
import cn.wolfcode.luowowo.article.domain.ScenicPic;
import cn.wolfcode.luowowo.common.domain.BaseDomain;
import cn.wolfcode.luowowo.common.domain.ScenicComment;
import lombok.*;
import org.springframework.data.annotation.Id;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@ToString
@NoArgsConstructor @AllArgsConstructor
public class ScenicCommentVO extends BaseDomain {
    public static final int SCENIC_COMMENT_TYPE_COMMENT = 0; //普通点评
    public static final int SCENIC_COMMENT_TYPE = 1; //点评的评论
    public static final int SCENIC_COMMENT_TYPE_AGAIN = 2;//评论的评论

    //@Id
    //private String id; //mongodb的id
    private String objectId;
    private String rank_star ;

    private ScenicDetail detailId; //景点的id
    private String detailTitle; //景点的标题

    private Long userId;    //用户id
    private String username; //用户名
    private String city;
    private int level;
    private String headUrl;   // 用户头像

    private String picUrl;    //点评的图片
    private List<ScenicPic> pics;
    private int type = SCENIC_COMMENT_TYPE_COMMENT; //评论类别
    private Date createTime; //创建时间 ,service设置

    private String content;  //评论内容
    private ScenicComment refComment;  //点评的评论

    private List<String> replys = new ArrayList<>();

    private int thumbupnum = 0;     //点赞数
    private List<Long> thumbuplist = new ArrayList<>();  //点赞的用户id集合

}
